
CC = gcc 
FLAGS = -Wall -g
HDRS = -I .

default:
	$(CC) $(FLAGS) $(HDRS) src/string.c -o bin/string
	$(CC) $(FLAGS) $(HDRS) src/vector.c -o bin/vector
	$(CC) $(FLAGS) $(HDRS) src/stack.c -o bin/stack
	$(CC) $(FLAGS) $(HDRS) src/queue.c -o bin/queue
	$(CC) $(FLAGS) $(HDRS) src/hashtable.c -o bin/hashtable


install:
	install -d /usr/include/coelacanth
	install coelacanth/string.h /usr/include/coelacanth/
	install coelacanth/vector.h /usr/include/coelacanth/
	install coelacanth/node.h /usr/include/coelacanth/
	install coelacanth/stack.h /usr/include/coelacanth/
	install coelacanth/queue.h /usr/include/coelacanth/
	install coelacanth/hashtable.h /usr/include/coelacanth/

clean:
	rm -f bin/*

